home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Printing < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.4 KB  |  [TEXT/ttxt]

  1. Subject:     Printing
  2. Sent:        6/7/96 1:35 PM
  3. Received:    6/7/96 1:51 PM
  4. From:        Gary Ashcraft, ashcraft@dharbor.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. I've been looking at ODF's printing support.
  9.  
  10. If I draw a box in the top-left corner of an ODF Draw document and print
  11. it, the box is offset from the corner of the page.  This offset varies from
  12. printer to printer, and is set to the corner of the imageable area of the
  13. page.
  14.  
  15. This works well for a drawing-type container part where big documents are
  16. printed by tiling the content across multiple pages.  Other kinds of
  17. container parts, though, are page-oriented and need accurate registration
  18. of their content to each page.  In other words, I might need to draw a
  19. border around the edge of a page that's inset exactly 1 inch from the edge
  20. of the paper.
  21.  
  22. >From looking at the FW_CPrintHandler class, I think I might be able to fake
  23. it out by subclassing FW_CPrintHandler::PrintPage.  When it's called, I'll
  24. have to offset pageBounds in order to remove the imageable-area bias, then
  25. call FW_CPrintHandler::PrintPage myself.
  26.  
  27. I'm not sure this is the best approach to handling this problem.  Has the
  28. ODF team considered this case?  What do you recommend?
  29.  
  30. Regards,
  31.   Gary Ashcraft                 ashcraft@dharbor.com
  32.   Digital Harbor
  33.  
  34.